<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=utf-8" errorPage="/error.jsp" isELIgnored="false" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.opensymphony.com/oscache" prefix="cache" %>
<%@ taglib uri="http://atleap.blandware.com/taglib" prefix="atleap" %>
<html:xhtml />

<c:set var="forums" scope="request" value="${requestScope.rootForums}" />
<c:set var="level" scope="request" value="0" />
<c:set var="forumsDrawn" scope="request" value="0" />
<atleap:messages />
<table border="0" cellpadding="0" cellspacing="0" class="forumsTree">
    <tr>
        <th colspan="${requestScope.maxLevel + 2}"><atleap:message key="forum.forum.form.forum" /></th>
        <th width="10%"><atleap:message key="forum.forum.form.numberOfTopics" /></th>
        <th width="10%"><atleap:message key="forum.forum.form.numberOfReplies" /></th>
        <th width="25%"><atleap:message key="forum.forum.form.lastPost" /></th>
        <th width="20"></th>
    </tr>
    <jsp:include page="/WEB-INF/pages/forum/forumsTreeSection.jsp" />
    <c:if test="${requestScope.forumsDrawn == 0}">
        <tr>
            <td class="tfoot" colspan="${requestScope.maxLevel + 2 + 4}" align="center">
                <em><atleap:message key="forum.forum.nothingToShow"/></em>
            </td>
        </tr>
    </c:if>
</table>